public class Point {

	String name;
	double x, y;

	public Point(String name, double x, double y) {
		this.name = name;
		this.x = x;
		this.y = y;
	}

	@Override
	public String toString() {
		return "Point(" + x + "," + y + ")";
	}

	public double getX() {
		return x;
	}

	public void setX(double x) {
		this.x = x;
	}

	public double getY() {
		return y;
	}

	public void setY(double y) {
		this.y = y;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public static Object deserialize2(String s)

	{
		java.util.StringTokenizer objectString = new java.util.StringTokenizer(
				s, ";");
		String field = "";
		java.util.StringTokenizer fieldString = null;
		field = objectString.nextToken();
		fieldString = new java.util.StringTokenizer(field, ":");
		fieldString.nextToken();
		fieldString.nextToken();
		String _name = fieldString.nextToken();
		field = objectString.nextToken();
		fieldString = new java.util.StringTokenizer(field, ":");
		fieldString.nextToken();
		double _x = Double.parseDouble(fieldString.nextToken());
		field = objectString.nextToken();
		fieldString = new java.util.StringTokenizer(field, ":");
		fieldString.nextToken();
		double _y = Double.parseDouble(fieldString.nextToken());
		return new Point(_name, _x, _y);
	}
	
	public static Object deserialize(String s) {
	
		java.util.StringTokenizer objectString = new java.util.StringTokenizer(s, ";");
		objectString.nextToken();
		Dispatcher dispatcher = new Dispatcher();
		String field = "";
		java.util.StringTokenizer fieldString = null;
		field = objectString.nextToken();
		fieldString = new java.util.StringTokenizer(field, ":");
		fieldString.nextToken();
		fieldString.nextToken();
		String _name= fieldString.nextToken();
		field = objectString.nextToken();
		fieldString = new java.util.StringTokenizer(field, ":");
		fieldString.nextToken();
		double _x= Double.parseDouble(fieldString.nextToken());
		field = objectString.nextToken();
		fieldString = new java.util.StringTokenizer(field, ":");
		fieldString.nextToken();
		double _y= Double.parseDouble(fieldString.nextToken());
		return new Point(_name,_x,_y);
	}
}